package com.mycom.service.impl;

import com.mycom.dao.EmployeeDao;
import com.mycom.pojo.Employee;
import com.mycom.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeDao employeeDao;

    @Override
    public Employee findByIdCard(String idCardNumber) {
        return employeeDao.findByIdCard(idCardNumber);
    }

    @Override
    public List<Employee> findAllByDepartmentId(Integer departmentId) {
        return employeeDao.findAllByDepartmentId(departmentId);
    }
}
